﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using taigu.WeChat;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace taigu
{
    /*
   * 文件名:IPostinfoService
   * 功能：发帖管理接口
   * 创建时间：2021-11-15
   * 作者:gavin
   */
    /// <summary>
    /// 太古帖子接口
    /// </summary>
    public interface IPostinfoService : IApplicationService
    {
       
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="createPostInfoDto"></param>
        /// <returns></returns>
        Task<ResData<string>> CreateAsync(WeChat.CreatePostInfoDto createPostInfoDto);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="updatePostInfoDto"></param>
        /// <returns></returns>
        Task<ResData<string>> UpdateAsync(WeChat.UpdatePostInfoDto updatePostInfoDto);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        /// 
        Task<ResData<string>> Delete(WebChat.WechatDto dto);

        /// <summary>
        /// 图文详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ResData<PostInfoSelectDto> DetailPost(WebChat.PostUserDto dto);

        ResData<object> GetWechatPostList(PostInfoSearchDto dto);

        ResData<object> GetCommunityPostList(PostInfoSearchDto dto);
        //string Test();

    }
    
}
